#ifndef MQTT_H
#define MQTT_H
#define CONNECT 0x10
#define CONNACK 0x20
#define PUBLISH 0x30
#define SUBSCRIBE 0x80 
#define SUBACK 0x90
int parse_type(unsigned char tt);
void mqtt_connect(int fd,const char*buffer);
void mqtt_subscribe(int fd,const char*buffer);
void   mqtt_publish(int fd,const char*buffer);
void notify(int fd,const char*topic,const char*msg,int msglen);
#endif



